package com.sctvcloud.qingchuan.beans;

import android.support.annotation.NonNull;

import com.ruihang.generalibrary.ui.util.IListData;
import com.ruihang.generalibrary.utils.IDataDate;
import com.sctvcloud.qingchuan.ui.util.IListShowData;

import java.sql.Date;
import java.util.List;

/**
 * 公众号新闻数据（文章、视频、组图）
 */
public class AccountNewsItem implements IListShowData, IDataDate {
    private long id;
    private String author;
    private String title;//新闻标题
    private List<NewsImgBean> image;
    private int imgCount;
    private String logo;//新闻封面
    private int type;//类型  1普通新闻； 2组图； 3 直播；4链接；5视频； 7广告 8专题； 10音频点播；
    private List<NewsVideoVo> video;
    private String redirectUrl;//分享地址？
    private String content;
    private String createTime;//创建时间
    private String publishDate;//发布时间
    private long commentCount;
    private long commentFlag;//新闻是否允许评论,1:为允许评论；0为不允许评论

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<NewsImgBean> getImage() {
        return image;
    }

    public void setImage(List<NewsImgBean> image) {
        this.image = image;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public List<NewsVideoVo> getVideo() {
        return video;
    }

    public void setVideo(List<NewsVideoVo> video) {
        this.video = video;
    }

    public String getRedirectUrl() {
        return redirectUrl;
    }

    public void setRedirectUrl(String redirectUrl) {
        this.redirectUrl = redirectUrl;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getPublishDate() {
        return publishDate;
    }

    public void setPublishDate(String publishDate) {
        this.publishDate = publishDate;
    }

    public long getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(long commentCount) {
        this.commentCount = commentCount;
    }

    public long getCommentFlag() {
        return commentFlag;
    }

    public void setCommentFlag(long commentFlag) {
        this.commentFlag = commentFlag;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public int getImgCount() {
        return imgCount;
    }

    public void setImgCount(int imgCount) {
        this.imgCount = imgCount;
    }

    @Override
    public Date getDataDate() {
        return null;
    }

    @Override
    public void setDataDate(Date date) {

    }

    @NonNull
    @Override
    public String getDatePattern() {
        return "yyyy-MM-dd HH:mm";
    }

    @Override
    public String getDateString() {
        return publishDate;
    }

    @Override
    public String getTime() {
        return publishDate;
    }

    @Override
    public IListShowData getOwenerData() {
        return null;
    }

    @Override
    public String getDataTitle() {
        return title;
    }

    @Override
    public String getDataImg() {
        return logo;
    }

    @Override
    public String getDataTag() {
        return null;
    }

    @Override
    public String getDataId() {
        return null;
    }

    @Override
    public int getDataType() {
        return type;
    }

    @Override
    public int getDataViewType() {
        return type;
    }

    @Override
    public IListData getOwner() {
        return null;
    }
}
